package org.example.feign;

import org.example.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Component
@FeignClient(path = "user",name = "user")
public interface UserFeign {
    @RequestMapping("getUserName")
    List<User> getUserName();

}
